Automatic focusing device

ABSTRACT

An automatic focusing device having a signal processing circuit for providing a focusing signal and a defocusing signal, or drive direction signal, to move the photographing lens to a focusing position the device is provided with a hunting preventing circuit in which, even if the drive direction signal is developed after it has been determined that the lens is focused on the object, the drive direction signal is made ineffective for a period of time which is shorter when the object brightness is high and longer where the brightness is low, whereby the hunting phenomenon with the lens which is liable to occur with a low brightness is positively prevented.

This is a continuation, of application Ser. No. 267,445, filed May 27, 1981, now abandoned.

BACKGROUND AND SUMMARY OF THE INVENTION

This invention relates to single lens reflex cameras, motion picture cameras and video cameras, and more particularly to an automatic focusing device in such a photographing device.

In a photographing operation, focusing and exposure are essential. Owing to the recent electronical development, the exposure can be substantially automatically determined, and accordingly the determination of exposure is not a cause that makes pictures unsatisfactory in quality.

On the other hand, a method of automatically focusing a photographing lens on an object (hereinafter referred to merely as "automatic focusing") is not sufficiently practical in use. A short focal length 35 mm camera for the beginner employing such a method has been proposed in the art. However, the camera is not ideal in that it is low in accuracy, it cannot use an interchangeable lens, and it cannot use a long focal length lens.

Recently, almost all the types of motion picture cameras have been combined with sound systems. However, it is considerably difficult for a photographer to operate the motion picture camera while controlling both the focusing of the camera and the adjustment of the sound system. Thus, there has been a strong demand for the provision of an automatic focusing device excellent in operability.

In photographing objects with a video camera, a number of matters must be taken into account. For instance, the composition, the movement of a person or persons, and the background must be taken into consideration in operating the video camera. In addition to these matters, the arrangement of color in a natural color image is one of the matters which must be adjusted by the photographer through his experience at all times, because the monitor system of the video camera is a monochrome television receiver.

Recently, the exposure system or mechanism has been improved into an automatic one, and accordingly the photographer can operate a camera more readily. However, it is still considerably difficult for the photographer to precisely control the focusing through the small monitoring finder. Thus, also in this respect, the provision of an automatic focusing device is strongly required.

Automatic focusing devices according to a visitronic module system, an infrared ray system and an ultrasonic wave system are commercially available. Since the automatic focusing devices are not provided according to a system in which the focusing position is detected by utilizing the bundle of rays passing through the photographing optical system (hereinafter referred to as "a TTL system", when applicable), the devices are completely different from an automatic focusing device ideal for the above-described various photographing devices, being disadvantageous in the following points:

(1) The conventional automatic focusing devices are not free from parallax.

(2) Accordingly, it is impossible to display on the finder a part on which the photographing lens should be focused.

(3) It is considerably difficult to apply the conventional automatic focusing devices to a photographing device using a photographing lens such as a zoom lens having a focal length variable over a wide range; more specifically to a video camera, a motion picture camera, or a single lens reflex camera using an interchangeable lens.

(4) The conventional automatic focusing devices are low in accuracy.

Therefore, in the case of a low brightness, the lens driving unit is operated for a longer period of time, so that the lens is run over the focusing position. In addition, in the case also where because of noise it is erroneously determined that the lens is defocused on the object, it takes a relatively long period of time until a correct decision is made later. Accordingly, during this period of time, the drive direction signal is maintained as an output and greatly shifts the lens from the focusing position.

Accordingly, at the next detection time, it is necessary to move the lens in the opposite direction. In this case, the lens may be run past the focusing position again, thus suffering from the hunting phenomenon.

Accordingly, an object of this invention is to prevent the occurrence of the hunting phenomenon with the photographing lens in the automatic focusing device.

The foregoing object and other objects as well as characteristic features of the invention will become more apparent from the following detailed description when read in conjunction with the accompanying drawings.

BRIEF DESCRIPTION OF THE DRAWINGS

In the accompanying drawings

FIGS. 1 through 3 are optical path diagrams for a description of the principle of an automatic focusing device to which this invention is applied;

FIG. 4 is an explanatory diagram showing the arrangement of a photographing lens, a blade and a sensor array for detecting the intensity distribution of an object to be photographed;

FIG. 5 is a diagram showing the intensity distribution of the object;

FIG. 6 is a diagram showing the intensity distributions of images A and B when the photographing lens is focused on the object;

FIG. 7 is a diagram similar to FIG. 6 in the case where the photographing lens is out of focus;

FIG. 8 is a block diagram showing the fundamental arrangement of an automatic focusing device to which the invention is applied;

FIG. 9 is an optical path diagram showing one example of an optical system in an intensity distribution detecting section in FIG. 8;

FIG. 10 is a block diagram showing one example of a data detecting section in FIG. 8;

FIG. 11 is a logic circuit diagram showing the relationships between signals ST, RDY and RDYW in FIG. 10;

FIG. 12 is a block diagram showing examples of a light-frequency conversion circuit and a sensor driver in FIG. 10;

The parts (a) through (d) of FIG. 13 are time charts showing the waveforms of various output pulses in FIG. 12;

FIG. 14 is a circuit diagram showing one example of a binary encoder in FIG. 10;

The parts (a) and (b) of FIG. 15 are waveform diagrams for a description of the operation of the binary encoder in FIG. 14;

FIG. 16 is a block diagram showing a shift register section;

FIG. 17 is a block diagram showing a correlation position detecting section;

FIG. 18 is a block diagram showing one example of a correlator in FIG. 17 in detail;

FIG. 19 is an explanatory diagram for a description of the operation of shift registers in the shift register section in FIG. 16 and the correlator in FIG. 17;

FIG. 20 is a graphical representation for a description of the operation of the correlation position detecting section;

FIG. 21 is a block diagram showing a motor drive section and a display section;

FIG. 22 is a block diagram of a clock pulse generating section;

FIG. 23 is a block diagram of a sequence control section;

FIG. 24 is a block diagram showing one embodiment of this invention; and

FIG. 25 is a logical circuit diagram showing one concrete example of a hunting preventing circuit in the circuit in FIG. 24.

DETAILED DESCRIPTION OF THE INVENTION

As conducive to a full understanding of this invention, first a principle of detecting a focusing position according to the invention will be described.

FIG. 1 shows the image Σ' of an object Σ which is formed by a lens 1. A light beam from a point P on the object Σ which passes through a point A in the upper half of the lens 1 concentrates at a point P' on the image Σ', and a light beam from the point P on the object Σ which passes through a point B in the lower half of the lens 1 also concentrates at the point P' on the image Σ'.

It is assumed that a blade 2 having an aperture 2a is provided as shown in FIG. 2, in order to consider only the image which is formed by the light beam which passes through the point A in the lens 1. In this case, with respect to the image Σ' at the focusing position, an image Σα formed at a defocusing position α is shifted in the positive direction of Y-axis, and an image Σ'β formed at a defocusing position β is shifted in the negative direction of Y-axis.

Similarly, it is assumed that the blade 2 is set as shown in FIG. 3, in order to consider only the image which is formed by the light beam which passes through the point B in the lens 1. In this case, with respect to the image Σ' at the focusing position, an image Σ'α formed at a defocusing position α is shifted in the negative direction of Y-axis, and an image Σ'β formed at a defocusing position β is shifted in the positive direction of Y-axis.

At the same time, the high frequency components of the images at the defocusing positions α and β are lost; that is, the images are foggy, and are low in contrast.

In order to detect the intensity distribution of the image, an optical sensor array 3 is disposed in the Y-axis direction as shown in FIG. 4.

If the intensity distribution of the object is as shown in FIG. 5, and the sensor array 3 is set at the focusing position, then both the intensity distribution of the image which is formed by the pencil of rays passing through the point A in the lens 1 (hereinafter referred to as "the image A" when applicable) and the intensity distribution of the image which is formed by the pencil of rays passing through the point B in the lens 1 (hereinafter referred to as "the image B" when applicable) are similar to that of the object in FIG. 1 and are similar in position to one another.

If the sensor array 3 is set at the defocusing position α in FIG. 2 or 3 (or the photographing lens 1 is set closer to the sensor array 3 which is at the correct position), the high frequency components of the image are lost, and as shown in FIG. 7 the image A is shifted in the positive direction of Y-axis, while the image B is shifted in the negative direction of Y-axis.

Under the condition that the points A and B are equally spaced from the optical axis, the amounts of shift of the images A and B are equal in magnitude but opposite in direction. Accordingly, the sum δ of the amounts of shift is twice one of the amounts of shift.

If the sensor array 3 is set at the defocusing position β in FIG. 2 or 3 (or the photographing lens 1 is set away from the sensor array 3 which is at the correct position), the images A and B are similarly shifted with the same amount of composite shift δ, but in the directions opposite to those in the above-described case.

If, when with respect to the image A the image B is shifted in the negative direction of Y-axis, the lens 1 is moved away from the sensor array 3, then the sensor array 3 approaches the focusing plane. If, when with respect to the image A the image B is shifted in the positive direction of Y-axis, the lens 1 is moved towards the sensor array 3, then the sensor array 3 approaches the focusing plane. Thus, if the sensor array 3 is set in a position in conjugation with a film surface (or an image pickup plane), then a lens driving direction to which the lens is moved for focusing can be detected.

An automatic focusing device employing the above-described principle will be briefly described with reference to FIG. 8.

The automatic focusing device, as shown in FIG. 8, comprises: an intensity distribution detecting section 10 for detecting, as video signals, the variations in intensity of the images of an object which are formed by light beams passing through different portions of a photographing optical system in a photographing device; a signal processing circuit 20 for processing the video signals thus detected, to detect the focus conditions of the photographing device and for delivering when the photographing device is in defocus condition, a drive direction signal to move the lens in the photographing optical system in the focusing direction; a lens drive device 30 for moving, while the drive direction signal is being delivered, the lens in the photographing optical system in the specified direction; and a display unit 40 for displaying the focus conditions of the photographing device.

In the intensity distribution detecting section 10, the images of the object are formed on the light receiving surfaces of a sensor array 16A and a sensor array 16B by light beams passing through the right and left halves of a focusing lens 11 forming the photographing optical system with the aid of lenses 15A and 15B, respectively. (In practice, the images of the sensor arrays are formed correctly on the light receiving surfaces only when the lens is focused on the object).

Accumulation mode type image sensor arrays, such as one-dimensional CCD image sensor arrays are employed as the aforementioned sensor arrays. The charge accumulation time of each sensor array is controlled by a sensor driver 17 according to object's brightness data. The intensity (density) distribution of the object's images are detected as video signals (corresponding to the light and dark of each light receiving point) whose levels are not affected by the object's brightness.

In the signal processing circuit 20, the video signals detected by the sensor arrays 16A and 16B are applied to binary encoders 21A and 21B, where they are converted into binary signals represented by "1" and "0", respectively. The binary signals are temporarily stored as an A data (or the intensity distribution data of the object's image formed by the light beam passing through the right half of the photographing lens) and a B data (or the intensity distribution data of the object's image formed by the light beam passing through the left half of the photographing lens) in memories 22A and 22B, respectively.

The relation between the A and B data stored in the memories 22A and 22B is shifted little by little. Whenever the shift is carried out, the correlation is detected by a correlator 23, and the peak position of the correlation output is detected by a peak detector 24. Depending on the number of times of relative shifting of the A and B data corresponding to the peak position detected by the peak detector 24, a drive direction detector 25 discriminates focusing and defocusing conditions and a direction in which the focusing lens 11 should be moved for focalization when the defocusing condition is detected, so that it outdelivers a focusing signal when the lens is focused and a drive direction signal when defocused.

A sequence controller 26 operates to control the operations of the various circuit elements in the signal processing circuit 20 in synchronization with the video signal output timing of the sensor arrays 16A and 16B controlled by the sensor driver 17. A lens drive device 30 comprises: a driver circuit 31; a motor 32; and a gear mechanism 33 adapted to convert the rotation of the motor into a linear motion thereby to move the focusing lens 11 in the direction of the arrow P or Q. While the drive direction signal is being delivered by the drive direction detector 25, the driver circuit 31 turns the motor 32 clockwise or counterclockwise according to the specified direction, to move the focusing lens 11 in the direction of the arrow P or Q. When the focusing signal is delivered by the drive direction detector 25, the motor 32 is braked to stop the focusing lens 11.

A display unit 40 operates to display front focusing, rear focusing and focusing by light emitting diodes different in color according to the drive direction signals and the focusing signal which are applied to the driver circuit 31.

The automatic focusing device thus organized will be described concretely.

First, with respect to the optical system of the intensity distribution detecting section 10, one example of the case where the automatic focus control devices is applied to a photographing device such as a still picture camera, a motion picture camera or a video camera will be described with reference to FIG. 9.

A photographing optical system, namely, a 3-group zoom lens is constituted by the focusing lens 11, a variable magnification lens 12 and an image forming lens 13. When the lens is focused, parallel light beams are provided between the variable magnification lens 12 and the image forming lens 13. Each of the lenses 11, 12 and 13 appears as one lens in FIG. 9; however, it should be noted that, in practice, it is constituted by a plurality of lenses.

A prism spectroscope 14 is interposed between the variable magnification lens 12 and the image forming lens 13, in order to direct a part of the photographing light beam downwardly. Detecting lenses 15A and 15B equivalent to the image forming lens 13 are disposed as shown in FIG. 9, and sensor arrays 16A and 16B are arranged at a position in conjugation with the position of a film surface F.

Thus, the image of an object by a light beam A passing through the right half of the focusing lens 11 is formed on the sensor array 16A by the lens 15A, while the image of the object by a light beam B passing through the left half of the focusing lens 11 is formed on the sensor array 16B by the lens 15B. A light intercepting plate 18 is provided between the lenses 15A and 15B so that the two light beams do not interfere with each other.

With the arrangement described above, the intensity distributions of the image by the light beam A and the image by the light beam B can be detected by the sensor arrays 16A and 16B simultaneously without using a movable member such as a blade (in practice, the halves of one sensor array being used as the sensor arrays 16A and 16B, respectively).

Similarly as in the case of FIG. 8, the focusing lens 11 is focused on the object by being moved in the direction of the arrow P or Q by a gear mechanism 33 with a rack and a pinion which is driven by a motor 32.

Now, the sensor driver and the signal processing circuit will be described.

FIG. 10 is a block diagram of a data detecting section.

A sensor array 16 has 256-bit light receiving elements. A half of 256 bits, i.e. 128 bits is used to detect the intensity distribution of the image by the light beam A in FIG. 9, and the remaining 128 bits is used to detect the intensity distribution of the image by the light beam B. In other words, the sensor array 16 is obtained by combining the two sensor arrays 16A and 16B into one.

The sensor array 16 is driven by the sensor driver 17 the accumulation time of which is controlled by a light-frequency conversion circuit 41.

In FIG. 10, reference numeral 104 designates a low pass filter; 105, an amplifier; and 21, a binary encoder for binary-encoding each bit of the video signal which is outputted by the amplifier 105, the binary encoder 21 corresponding to the binary encoders 21A and 21B in FIG. 8.

A shift register 107 and a control logic circuit 108 form a speed conversion section for carrying out a signal processing operation with a microcomputer. The shift register 107 is a 256-bit shift register capable of storing the 256-bit data of the sensor array 16. In FIG. 10, reference character D designates data; ST, a start signal, CLK, a clock input; and RDYW, a signal which is set to "0" only when the start signal ST is at "1" and a ready signal RDY which is raised to "1" after the data from the sensor array 16 has been transferred is at "0", the signal RDYW being at "1" in the other cases.

The sensor driver 17 and the light-frequency conversion circuit 14 are arranged as shown in FIG. 12, for instance.

The conversion circuit 41 comprises a capacitor C1, a resistor R1, and an oscillator circuit 46 with a photo-cell 45 as a time constant element, to output a square wave signal Sγ whose frequency varies with a quantity of incident light γ. Therefore, the period T of the square wave signal Sγ decreases with increasing the quantity of incident light γ, or increases with decreasing the quantity of incident light.

The one-shot multivibrator 42 is triggered, for instance, by the fall of the square wave signal Sγ, to output a shift pulse φx having a predetermined pulse width at a period T as shown in the part (a) of FIG. 13. The period T of the shift pulse φx is the charge accumulation time of the CCD image sensor array 116.

The oscillator 43 applies, for instance, a 2 MHz oscillation output to the clock pulse generating circuit 44, as a result of which the latter 44 outputs a reset clock pulses φ_(R) and transfer clock pulses φ₁ and φ₂ which are two-phase clock pulses opposite in phase as shown in the parts (b) and (c). These clock pulses are applied to the sensor array 16.

The sensor array 16 is driven by the shift pulse φx, the transfer pulses φ₁ and φ₂ and the reset pulse φ_(R), to successively output signals corresponding to the intensity distribution of the received image.

FIG. 14 shows one example of the binary encoder 21. The peak value of the input signal Sv is held by a circuit made up of an operational amplifier 47, a diode D₂, resistors R₂ and R₃ and a capacitor C₂, so that a signal Vc as indicated by the broken line in FIG. 15 is obtained. The signal Vc is suitably amplified by an amplifier circuit made up of an operational amplifier 48 and resistors R₄ through R₆ to provide a comparison voltage Vref. The comparison voltage Vref is compared with the input signal Sv in a comparator or an operational amplifier 49. When Sv≧Vref, the operational amplifier 49 provides a binary-coded output Dv at a logic level "1", and when Sv<Vref, a binary-coded output Dv at a logic level "0" is delivered, as shown in the part (b) of FIG. 15.

Referring back to FIG. 10, when the start signal ST is applied to the control logic circuit 108 by a sequence control section (FIG. 23) described later (the sequence controller 26 in FIG. 8 including the sequence control section and the control logic circuit), a video signal representative of the image intensity distribution which has been accumulated in the sensor array 16 with the charge accumulation time T (cf. FIG. 13) corresponding to the object's brightness is delivered. The video signal is applied through the low-pass filter 104 and the amplifier 105 to the binary encoder 106, where it is binary-encoded and is then transferred to the 256-bit shift register 107. When the 256-bit data has been transferred, the signal RDYW is raised to "1".

FIG. 16 is a block diagram of a shift register section in which the data stored in the shift register 17 is distributed into data (A data) by the light beam A and data (B data) by the light beam B for arrangement.

The shift register section comprises: a 128-bit shift register 110 (corresponding to the memory 22A in FIG. 8) for A data; a 128-bit shift register 111 (corresponding to the memory 22B in FIG. 8) for B data; multiplexers 112 and 113 and selectors 114 and 115.

When a signal SELAB from the sequence control section (FIG. 23) described later is at "1", the multiplexer 112 applies the input data D to the selector 114; and when the signal SELAB is at "0", the multiplexer 113 applies the input data D to the selector 115.

The selectors 114 and 115 apply input data DA and DB from the multiplexer 112 to the shift registers 110 and 111, respectively, when a signal CNT from the sequence control section is at "1". When the signal CNT is at "0", the selectors 114 and 115 are switched to return data from the output sides (out) of the shift registers 110 and 111 to the input sides thereof, respectively.

The multiplexer 113 receives a clock pulse CLKOUT from a clock pulse generating section (FIG. 22) described later, and applies a clock pulse CLKA to the shift register 110 and a correlator 120 (FIG. 17) described later when the signal SELAB is at "1". When the signal SELAB is at "0", the multiplexer applies a clock pulse CLKB to the shift register 111 and the correlator 120.

Thus, first with the signal CNT at "1", the signal SELAB is raised to "1", and the data D stored in the shift register 107 in FIG. 10 is transferred through the multiplexer 112 and 114 to the shift register 110. Upon application of 128 clock pulses CLKOUT, the first half 128-bit A data DA of the shift register 107 is transferred to the shift register 110.

Next, the signal SELAB is set to "0", and thereafter upon application of 128 clock pulses the second half 128-bit B data DB of the shift register 107 is transferred to the shift register 111.

After the 128-bit A data DA and the 128-bit B data DB have been arranged in the shift registers 110 and 111 respectively, the signal CNT is set to "0", as a result of which the selectors 114 and 115 are switched to return the data from the output sides of the shift registers 110 and 111 to the input sides thereof. Thereafter, with the aid of the clock pulses CLKA and CLKB, the required data are delivered out of the shift registers 110 and 111 to the correlator 120 described later.

FIG. 17 is a block diagram showing a correlation position detecting section corresponding to the correlator 23 and the peak detector 24 in FIG. 8. The correlation position detecting section comprises: the correlator 120; a current-voltage converter (or I-V converter) 121; a sample and hold circuit 122; a peak detector 123; an OR gate 124; and a counter 125.

The correlator 120 may be of "TC 1004J" manufactured by TRW company. The correlator 120, as shown in FIG. 18, comprises: two 64-bit shift registers 120A and 120B; EX-OR circuits G₁ through G₆₄ for subjecting corresponding bits to exclusive logic summation; and a circuit for adding the outputs of the EX-OR circuits through respective resistors r₁ through r₆₄ to obtain an output represented by a current value. As the A data of the shift register 120A coincides with the B data of the shift register 120B, the number of the outputs of the EX-OR circuits which are set to "0" is increased, and accordingly the output current I₀ is increased. The output current I₀ is converted into a voltage by the current-voltage converter 121; i.e. the correlation output is obtained.

The operation of transferring data from the shift registers 110 and 111 in FIG. 16 to a register 120A for the A data and a register 120B for the B data in the correlator 120 will be described with reference to FIG. 19.

In this embodiment, similarly as in the operation in which two halves of an image which have been shifted in the opposite directions through image splitting are coincided with each other to detect the focusing, the opposed halves of the A data DA and the B data DB stored in the shift registers 110 and 111 are shifted in the opposite directions bit by bit, to detect the correlation.

More specifically, the 64-bit data of the shift register 110, i.e. the left half of the data of the shift register 110 (indicated as a shaded portion in FIG. 19) and the 64-bit data of the shift register 111, i.e. the right half of the data of the shift register 111 (indicated as a shaded portion in FIG. 19) are transferred to the shift registers 120A and 120B, respectively, for detecting the correlation.

For this purpose, in the first correlation detection, 128 pulses CLKA are applied to the shift registers 110 and 120A, and 64 pulses CLKA are applied to the shift registers 111 and 120B.

When 128 pulses CLKA are applied to the shift register 110, all the data are transferred to the shift register 120A, and are returned back to the shift register 110. Thus, the shift register stores the A data under the same condition as the initial condition. Since the capacity of the shift register 120 is only 64 bits, the first half 64-bit data is eliminated by being pushed out, and therefore the second half 64-bit data, i.e. only the A data (indicated as a shaded portion in FIG. 19) is stored.

On the other hand, when 64 pulses CLKB are applied to the shift register 111, the right half of the data (indicated as a shaded portion in FIG. 19), i.e. the B data of 64 bits is transferred to the shift register 120B. Therefore, in the shift register 111, the data which was in the left half position is stored in the right half position, and the data which was in the right half position is stored in the left half position.

In the second correlation detection, 127 pulses CLKA are applied to the shift register 110, and one pulse CLKB is applied to the shift register 111.

As a result, the A data of 64 bits which is shifted by one bit to the right when compared with its state in the shift register 110 in the first correlation detection (as indicated by the phantom line in FIG. 19) is transferred to the shift register 120A. On the other hand, the B data of 64 bits which is shifted by one bit to the left when compared with its state in the shift register 111 in the first correlation detection is transferred to the shift register 120B.

Thus, in and after the second correlation detection, 127 pulses CLKA are applied to the shift registers 110 and 120A, and one pulse CLKB is applied to the shift registers 111 and 120B, to carry out the correlation detection sixty-four times. That is, the data indicated as the shaded portions in FIG. 19 are shifted in the opposite directions bit by bit until the data are completely in opposed state, to detect all the correlations.

In the thirty-second correlation detection, the correlation of the A data of 64 bits and the B data of 64 bits approximately in the central positions in the shift registers 110 and 111 (as indicated by the broken lines in FIG. 19) is detected. If, in this detection, the output of the correlator 120 is maximum, the photographing lens is in focus. If the correlation output is maximum in a correlation detection other than this correlation detection, then the photographing lens is out of focus as much.

Referring back to FIG. 17, the output current of the correlator 120 in each correlation detection is converted into a voltage by the I-V converter 121, and the voltage is applied to the sample hold circuit 122 and the peak detector 123.

Whenever the data of the shift registers 120A and 120B in the correlator 120 are correlated, a sampling signal S/H from the sequence control section (FIG. 23) described later is raised to "1", so as to sample an input signal to the sample hold circuit 122 from the I-V converter 121. In the first place, peak detector 123 samples the signal from I-V converter in a manner illustrated by FIG. 20, so that when the sampled value is higher than the preceding held value, the held value is renewed, and when the sampled value is lower than the preceding held value, the held value is continually held as it is.

Therefore, for instance in the case where the sample values in the correlation detections are varied as indicated by the solid line in FIG. 20, the held value follows the sample value while the latter is being increased; however, after the increase of the sample value reaches a peak value the peak value is held as indicated by the broken lines in FIG. 38 until a sample value higher than the peak value is provided.

In the second place, the peak detector compares these two values-solid line with broken line in FIG. 20. When the broken line is not higher than the solid line, the peak output is raised to "1". The peak output "1" is applied through the OR gate 124 to the counter 125 to reset the latter 125.

Therefore, the counter 125 is maintained reset as indicated in FIG. 20 until the correlation output reaches a peak value. Thereafter, the counter 125 counts the sampling signal S/H; however, it is reset again when the correlation output reaches a peak value which is larger than the preceding peak value. When the sixty-fourth sampling, or the sixty-fourth correlation detection has been achieved, the count value which is obtained by counting the sampling signal after the occurrence of the maximum peak value is held in the counter 125. This count value is delivered, as a correlation position data, by the counter 125.

This count value of the counter is reset for the time interval which elapses after the start signal ST is raised to "1", i.e. the data accumulation of the sensor array 101 is started, until the time instant that the data are transferred to the shift registers 110 and 111.

FIG. 21 is a block diagram showing a motor drive and display section. This section comprises a latch circuit 130, a magnitude comparator (or a digital comparator) 131, and LED (light emitting diode) and motor driver 132.

The latch circuit 130 latches the correlation position data which is outputted as the counter value of the counter 125 described above, when the signal STRB from the sequence control section (FIG. 21) is raised to "1".

The magnitude comparator 131 is set to a value thirty-two (32). In the magnitude comparator 131, the correlation position data latched by the latch circuit 130 (hereinafter referred to as "a correlation position data N" when applicable) is compared with (32). If N>32, an output a of the comparator 131 is raised to "1"; if N<32, an output b of the comparator 131 is raised to "1"; and if n=32, an output c of the comparator 131 is raised to "1".

The LED and motor driver 132 operate to rotate the motor 133 in one direction and to turn on a light emitting diode L1 indicating the front focus when the output a described above is at "1"; and to rotate the motor in the opposite direction and to turn on a light emitting diode L2 indicating the rear focus when the output b is at "1".

Thus, the photographing lens (not shown) is moved to be in focus by the rotation of the motor. When the photographing lens is focused on the object, the output c of the magnitude comparator 131 is raised to "1", as a result of which the motor 133 is braked and a light emitting diode L3 is turned on to indicate the focusing.

During the motor driving operation, the above-described sequence is repeatedly carried out, so that in a motion picture camera or a video camera the focus adjustment is carried out following the movement of an object at all times. In the case of a still camera, the shutter can be released after the light emitting diode indicating the focusing has been turned on.

After the motor has been rotated in the required direction, the motor can be stopped by detecting the focusing by using a contrast check circuit as shown in FIG. 28.

If an automatic/manual change-over switch 134 is turned off, the motor 133 is not rotated, and one of the light emitting diodes is turned on. Therefore, in this case, the photographing lens can be manually focused on an object with the focusing checked.

FIG. 22 is a block diagram showing a clock pulse generating section. This section comprises, a latch circuit 140 for latching a preset numerical value (n), a counter 141, a clock pulse oscillator 142, a one-shot multivibrator 143, a group of EX-OR circuits 144 for the output bits of the latch circuit 140 and the counter 141, an OR circuit 145 for receiving the outputs of the EX-OR circuits 142, and an AND gate 146.

In order to supply clock pulses CLKOUT as many as necessary for the operations of the above-described various circuit elements, the necessary number is given, as a preset value, by the sequence control section (described later). When a signal BGN is raised to "1", the one-shot multivibrator 143 is triggered by the rise of the signal BGN, the output of the one-shot multivibrator 143 is latched by the latch circuit 140, and the counter 141 is reset.

At the same time, the output of the OR circuit 145 is set to "1", and while the output clock pulse of the clock pulse oscillator 146 is provided through the AND gate 146, the output clock pulse is counted by the counter 141.

When the count value of the counter 141 reaches the preset value latched in the latch circuit 140, all of the outputs of the EX-OR circuits 144 are set to "0". As a result, the output of the OR circuit 145 is set to "0", to close the AND gate 146, and therefore the delivery of the clock pulse is suspended.

The output of the OR circuit 145, i.e. a signal BSY is maintained at "1" while the clock pulse is being delivered, so as to stop the advancement of the sequence of the sequence control section (FIG. 23) described later.

The above-described operations in the various circuit elements are controlled by the sequence control section shown in FIG. 23.

The sequence control section comprises a 4-MHz oscillator 150, a frequency divider 151 for subjecting the output of the oscillator 150 to 1/4 frequency division, a counter for counting the output of the frequency divider 151, a read-only memory (ROM) 153 which is addressed by the count value of the counter 152, and 7-bit latch circuits 154 and 155 for latching the output data of the ROM 153.

The data of operating signals necessary for the sequence control and the data of the preset value which is to be applied to the above-described clock pulse generating section are stored in 8-bit memories by using seven bits beginning with the 0-th address, and a signal EXH for selecting the latch circuits 154 and 155 is stored by using the remaining one bit. The operating signals RST, ST, BGN, SELAB, CNT, S/H and STRB are each stored, as "1" or "0", in one of the seven bits.

An address in the ROM 153 is specified according to the count value of the counter 152, so that the data in the address thus specified is read out. If the signal EXH is at "1", an AND gate 156 is opened, so that the data thus read is latched by the latch circuit 154 with the timing that the output of an AND gate 159 is raised to "1". When the signal EXH is at "0", the output of an inverter 158 is raised to "1" to open an AND gate 157, so that the data read out is latched by the latch circuit 155.

After the counter 152 has counted up, there is a little time before all the data in an address newly specified are provided at the output of the ROM 153. Therefore, the counter 152 is counted up with the fall of a pulsed signal CK4 which is obtained by subjecting the 4-MHz pulse signal CK1 of the oscillator 150 to 1/4 frequency division, and the pulse signal CK4 and the 4-MHz pulse signal are applied to the AND circuit 159. When the output of the AND circuit 159 is raised to "1", i.e. after a half period of the pulse signal CK4, the latch circuit 154 or 155 is strobed.

When the above-described signal RDYW is at "0", i.e. for the time interval which elapses from the start of the data accumulation of the sensor array 101 in the data detecting section in FIG. 10 until the data have been transferred to the shift register 107, the AND gate 160 is maintained closed. Furthermore, in the case when the signal BSY from the above-described clock pulse generating section is at "1", and its inverted signal BSY is at "0", the AND gate 160 is closed, to prevent the count-up of the counter 152, thereby to stop the advancement of the sequence.

When the signal RST is raised to "1", the output of the one-shot multivibrator 161 is set to "0" in a short time. This output is applied through an inversion input type OR circuit 162 to the counter 152 to reset the latter 152. When the power switch is turned on, a point g in an initial reset circuit 163 is at "0". This low level data "0" is applied through the OR circuit 162 to the counter 152 to reset the latter 152.

FIG. 24 shows one embodiment of this invention, in which a hunting preventing circuit 50 is interposed between the magnitude comparator 131 and the driver 31 adapted to drive the motor 32 and the display unit 40. The hunting preventing circuit 50 operates as follows: Even if, when the focusing signal c has been delivered by the magnitude comparator 131, the defocusing signal, i.e. the drive direction signal a or b is delivered thereafter, the latter is made ineffective for a predetermined period of time inversely proportional to the brightness of an object to be photographed; that is, the application of the drive direction signal to the driver 31 is inhibited for the predetermined period of time.

The hunting preventing circuit 50, as shown in FIG. 25, comprises: a counter 51; an R-S flip-flop 52 (hereinafter referred to as "an FF 52", when applicable); an OR gate 53; an inverter 54; and AND gates 55, 56 and 57. In FIG. 25, reference numeral 58 designates a change-over switch for changing the period of time for which the drive direction signal is ineffective. It is not always necessary to provide the switch 58.

Upon reception of 2^(n) pulses, the output of the counter 51 is raised to "1". In FIG. 25, when the counter counts eight (=2³) pulses, the output O₁ is raised to "1"; and when it counts sixteen (=2⁴) the output O₂, is raised to "1".

The operation of the hunting preventing circuit will be described.

When the focusing signal c from the magnitude comparator 131 is raised to "1" (when N=32), the counter 51 and the FF 52 are reset, and the output Q of the FF 52 is raised to "1". That is, the output c' is raised to "1". This output c' at "1" is applied to the driver 31, to brake the motor 32, thereby to stop the lens driving unit.

Thereafter, when the drive direction signal a from the magnitude comparator 131 is raised to "1" (N>32) or the drive direction b is raised to "1" (N<32), the signal a is applied to one input terminal of the AND gate 56, while the signal b is applied to one input terminal of the AND gate 57. In this operation, the output Q of the FF 52 is at "0", and therefore the AND gates 56 and 57 are closed. Thus, the output signals a' and b' are maintained at "0", and the output signal c' is maintained at "1".

In this operation, on the other hand, the output of the OR gate 53 is raised to "1", so that one input to the AND gate 55 is at "1". Therefore, a signal obtained by inverting the above-described signal RDYW with the inverter 54, i.e. a signal RDYW which is raised to "1" whenever the transfer of data from the sensor array is accomplished is applied through the AND gate 55 to the counter 51. In this case, the focusing signal c has been set to "0", and accordingly the reset states of the counter 51 and the FF 52 have been changed.

Therefore, when the counter 51 counts weight pulses, its output O₁ is raised to "1" to set the FF 52, as a result of which the outputs Q and Q of the FF 52 are set to "1" and "0", respectively. Therefore, the output signal c' is set to "0", while the output signal a' or b' is raised to "1". These output signals are applied to the driver 31, so that the motor 32 is turned clockwise or counterclockwise, to move the lens to the focusing position.

If the focusing signal c is raised to "1" again before the counter 51 counts eight input pulses, the count value is reset, and accordingly the drive signal a or b is made ineffective, so that the lens is maintained stopped. If the switch 58 is operated to select the output O₂ of the counter 51, then even when the drive direction signal a or b is raised to "1" after the focusing signal c has been raised to "1", the drive direction signal is made ineffective until sixteen RDYW signals at "1" are counted up, and therefore the lens driving system is maintained stopped for a longer period of time.

The period of the signal RDYW is inversely proportional to the brightness of an object to be photographed; that is, as the brightness increases, the period decreases. Accordingly, the period of time for which the drive direction signal a or b is made ineffective by the hunting preventing circuit is decreased as the brightness increases. Thus, the occurrence of the hunting phenomenon with a low brightness can be positively prevented, with the response characteristic in the case of a high brightness being not so greatly harmed.

By the provision of the hunting preventing circuit, the display unit 40 can perform a stable display operating; that is, the display on the display unit 40 will never flicker.

In the above-described embodiment, the intensity distributions of the object's images passing through different portions of the photographing optical system are led to a position different from that of the photographing image and are detected with the one-dimensional CCD image sensor array. However, in a video camera using a two-dimensional image pickup element for converting a photographing image into an electrical signal, the detection may be carried out by extracting at least one of the two intensity distributions from the photographing video signal or by utilizing the blanking portion of the image pickup element.

In this connection, the technical concept of the invention can be effectively applied to the case where the image pickup element is an accumulation mode image sensor and its charge accumulation time is controlled according to the brightness of an object to be photographed.

It goes without saying that the invention is similarly applicable to an automatic focusing device in a camera using no zooming lens.

As is apparent from the above description, the occurrence of the hunting phenomenon with the photographing lens in the case of a low brightness can be positively prevented according to the invention, and accordingly the photographing lens can be correctly focused on the object. 

What is claimed is:
 1. In an automatic focusing device comprising:intensity distribution detecting means for detecting the intensity distribution of the image of an object to be photographed and which is formed by a light beam passing through a lens of a photographing optical system in a photographing device, as a video signal whose level is not affected by the brightness of the object, an accumulation mode image sensor in said intensity distribution detecting means with a charge accumulation time in dependence upon the brightness of the object, a signal processing circuit receptive of the video signal for processing the video signal to determine whether the photographing device is in a focused state, and to determine when the photographing device is in a defocused state and having an output, a drive device in said signal processing circuit for developing a drive direction signal output in response to the output of the signal processing circuit to move the lens in the photographing optical system towards a focusing position, and lens driving means for moving the lens in a direction determined by the drive-direction signal as long as the direction drive signal is delivered by the signal processing circuit, the improvement comprising: a hunting preventing circuit means for making said drive-direction signal ineffective for a predetermined period of time when said lens reaches a focusing position and which is shorter in time when the object is high in brightness and is longer in time when the object is low in brightness, even if said drive-direction signal is delivered after it has been determined by said signal processing circuit that said photographing device is in a focused state, whereby the lens is maintained stopped during said period of time when it reaches said focusing position thereby preventing hunting. 